auto login, and auto login after register. logout function
Merge branch 'master' of https://github.com/svenne87/betbattle