added constraint to the password so that the min length is six