Added validation for password