fixed bug where main form was blank after login