Fixed bug in user authentication
Merge pull request #185 from johann8384/auth_bug

Fixed bug in user authentication