Added new function on reset_password.