Refactored Registration code. Renamed FirstViewController to LoginViewController