Fix critical layout and validation bugs in a multi-step registration form so it validates input correctly and prevents invalid submissions.
The form has several fields (email, password, confirm password, etc.) that must be validated before submission. Fix broken validation rules and error display.
Ensure email format is checked correctly, passwords match, and required fields are not empty. Show clear error messages for each invalid field.
Prevent the form from submitting when validation fails, and clear error states when the user corrects their input.
Test that valid input submits and each invalid case shows the appropriate error.