added validations and changed password fields