refactored, cleaned code, fixed bug which gave exception if you logged in as user who wasn't in DB already
refactored, cleaned code, fixed bug which gave exception if you logged in as user who wasn't in DB already
Merge branch 'master' of github.com:ucam-cl-dtg/urop-2013-questions