finished login and register pages