working cancel button and stop returning to login form when logged in