working on login and register pages