init signing and signup logic