fixed register/login