added validation to create user