corrected signup logic