polish signup logic