finished login and register