Fix some errors and styles in pwd recovery
Remove unnecessary method