I have a textbox for a username, a bunch of other ones for other info, and two buttons at the bottom of the page: One to login and another that hides the current panel and shows another panel with information about creating a new account.

Now I want to have a required validation on the username box, so I add a required field validator, but the problem is that if the person wants to see the information panel instead of logining in they can't, they have to provide a username....

how do I avoid this?