fixing signup logic