user email regex, database preparation, and string checking