Persisting on mongo database.
Checking if user is persisted on database to authenticate.