On succesfull login moves to the main form