login/signup working with ajax and sets userId to cookie on signup/login, needs client side code to handle responses