validating the userid and passwd

Hi

i need to write a script which perform some action only when an existing and privliged user is running it. It will call another script where user ID and password are required.

So in main script before calling another script I need userID and password validation....for that I can check userid in /etc/passwd file .... but how to check that he entered correct password.

Please help.

Thanks,