made sure that email and username are saved in lower case