Skip to content

fix: validate full name input during signup#404

Open
guruprasad06 wants to merge 3 commits into
Canopus-Labs:mainfrom
guruprasad06:fix/signup-name-validation
Open

fix: validate full name input during signup#404
guruprasad06 wants to merge 3 commits into
Canopus-Labs:mainfrom
guruprasad06:fix/signup-name-validation

Conversation

@guruprasad06

Copy link
Copy Markdown
Contributor

📝 Pull Request Description

Related Issue

Closes #346

Summary

Added client-side validation for the Full Name field during user signup.

Changes made:

  • Added validation to reject names containing numbers and special characters.
  • Trimmed leading and trailing whitespace before validation.
  • Allowed only alphabetic characters and spaces.
  • Displayed a validation error message for invalid names before form submission.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature
  • ♻️ Refactoring
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • 🔥 Other (please describe) ______

How Has This Been Tested?

  • Tested with valid names such as John Doe and Rahul.
  • Tested with invalid names such as John123, 12345, and @@@ to verify validation errors are shown.

Screenshots (if applicable)

Screenshot 2026-07-07 185458 Screenshot 2026-07-07 185438 Validation before and after the fix:

Before: Invalid names such as John123 were accepted.

After: Invalid names display a validation error and prevent form submission.


Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

@KaranUnique

Copy link
Copy Markdown
Contributor

@guruprasad06 let me know, you're working under which program ?

@guruprasad06

guruprasad06 commented Jul 9, 2026 via email

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Sign-up form accepts invalid names containing numbers and special characters

2 participants