Refactor email validation (server) and gitignore