Added validation for existing user in mysql and passwd