Continued working onRegister and Login