fix login and register page