Implemented backend validation of password and password confirmation