Fixed incorrect routing method for register.
Added environment variables for mail
Added CORS