Added the support for logging. Added the input for the three credentials.