added permit to register page