Bug hunt · Beginner

Find the 10 bugs in this sign-up form

This form has 10 bugs planted on purpose. Test it against the requirements, write down every bug you find, then check the answer key at the bottom. Nothing you enter is sent anywhere.

Requirements

  1. First name and last name are required.
  2. Username: 4–20 characters, letters and numbers only.
  3. Email must be a valid address, for example name@example.com.
  4. Phone: exactly 10 digits.
  5. Password: at least 8 characters, including a number.
  6. Confirm password must match the password exactly.
  7. You must be 18 or older.
  8. Country is required.
  9. You must accept the terms.
  10. On success, the page shows "Welcome, <first name>! Your account is ready."

Create your account

Answer key

Try for at least 20 minutes before you look. How many did you find?

Show the 10 planted bugs
  1. Username stops at 12 characters. The field has maxlength 12, so valid usernames of 13–20 characters cannot be typed.
  2. Email without a domain ending is accepted. "ana@mail" passes. The check only looks for text on both sides of an @.
  3. Phone accepts letters. "12345abcde" passes because only the length (10) is checked.
  4. Password minimum is 6, not 8. A 6- or 7-character password with a number is accepted.
  5. Confirm password ignores case. "Secret123" and "secret123" are treated as matching.
  6. Age 18 is rejected. The rule says 18 or older, but the code checks age > 18 (an off-by-one boundary bug).
  7. Wrong message for an empty last name. Leaving last name empty shows "First name is required".
  8. Terms checkbox is not enforced. The form submits even when the terms box is not ticked.
  9. Welcome message uses the last name. The success message says "Welcome, <last name>!" instead of the first name.
  10. Typo in the country list. "Canda" instead of "Canada".

Found something else? That may be a real bug. Tell us on the contact page. Next, try theshopping cart bug hunt.