binding save_credentials button for modal