#172 login 부분 email validation check 코드 추가 위해 validateEmail() 리팩토링
refactoring validateEmail() in index.js to check email validation while
logging in and joining