Fixed a login/out bug so now going to mainActivity automatically logs
the user out. Bug was that if you logged in, then went back to
mainactivity, you were still logged in. You could not hit login with
blank info, but could hit register, then submit with blank info and be
logged in as previous user. But that's fixed now!