Finished Login Authentication

Needs testing
Fixed login authentication bugs

Final touches and tested with cloud connection. Formal testing needed.