added Crendentials validation