template: put the login and register in main page