function isUserPassValid($userId, $password) {
$account = user_load_by_name($username);
// $account = user_load_by_name(user_load($userId));
if (user_check_password($password,$account))
{
return TRUE;
}
else {
return FALSE;
}
}