Reset password functionality. Fixes #4