fixed login to store new users in db
Merge pull request #86 from Useful-Innovation/johans-fixes

fixed login to store new users in db