Added a first version of the login fuction, which can verify a user by his email and password