updated the register form and login system