Added so that login form dissappears when you login and reappears when you exit main form.