Made the user login, register, edit better