added updateConfig api and print error on server listen to logger
Update config api function, if a password is provided password fields are not blanked
check config in updateConfig
Fix for error handling