Title: Unittest works with mock and db

Description: Remember to test for “Case 2” in Validateuser method:
Commit: Christopher