removed prints, added check for credentials