Feature/password reset

Fixes #267 
Could you add some logging in here?