Setup email for production, added ability for user to edit registration and refactored some code to clean up code