[Refactor] Push authentication logic from web.js to authentication.js module
Add AWS SES support to send email