added validation for less then 3 characters and spec