Updated validation for signup and user registration