Added client side password validation for server workaround
server-side password validations are currently not working so added client side validation workaround