added functionality to sign up in-thread