patch of login and register page