added validation in preferences :: Admin panel