Added unique email validator and minor changes to register action