Updated login, added auto log in if session exists