Changed the password validation functionality while signing up new users

Signed-off-by: Anurag <anurag.pattnaik@andolasoft.com>