Added require statement for credentials on mail config