Fixed Database API ValidateUser

ValidateUser now correctly accesses the database.