Improve login and update, the login register is still crashing