fixed small bug on options for credentials