added login validation
added error check for duplicates of new email edits