name and password length restriction added