Added functionality: can retrieve user from database based on email, in case of forgotten password