added name validation
added password validation