fix wrongly indented code and add credentials