Made a clean-up, *check for user registration permissions and email validation