Fixed a problem with the register and login