Here is my code. For some reason, if I submit the form without placing and passwords in, it still creates the database entry. There are some comments scattered throughout th
isset checks that the variable is set - in this case it is set to '' (an empty string). Try using empty() as well.