homepage and permissions for register and login