When a user uses my registration form, there is a bug where

When a user uses my registration form, there is a bug where even if the registration form isn't completed properly it still creates an account.

So the form refreshes telling the user to correct the incorrect fields, but upon clicking the registration button, it says the "email is already in use", or the "username is already in use".

At this point the user gets locked out of their desired username/email, and is thoroughly confused.