Updated controller to match both the password and to call add new user function in register.html