Finished user authentication and added environmental variables for security