Pre-populate the database also with a Tip

Also set username and password attrs of dummy models
Implement unittests for authentication handler
Fix bug in authentication handler

This was found with the unittest ;)