error for registration page and permissions now working!