Refactor hash-password with new method
Refactor update_cred