add prototype for login and register pages