adding get permissions, registration redirects back to login unless error