Putting restrictions on the unikey and creating the user email whena  user is created.