Automation of hrm_credential.end_date based on deployment setting

This checks whether the end_date has been updated manually by the user and does not override those.

Disables the function if the deployment setting returns an invalid input or "None".