Implement client-side state authentication checking
Go to main on successful login