-Cleaned up code and got rid of login dialog class