Hi,
i think in first you'ld should ask if your variable ($username) is empty. That's the job of the isset function. You make it in a if loop and if your variable is not NULL, than its enter in the switch loop. Or "Please fill out..." will appear. You'll make it with all the variable.
Ex ...