Fixed register and login