Fixed credentials validation.