Made MainActivity the main activity
Moved login state check to MainActivity