Added validation for password

Validating Password minlength and maxlength with appropriate messages.