added autologin
Merge branch 'loginAndSignup' into phase1