Fixed issue with unterminated if statements
Fixing issue with AWS credentials