fixing reset-password issue and adding feature spec.