Finish password reset plugin. Fixed #40