Error handling related to password mismatch and password length is done