Split into login and main form