Fixed bug in not setting user id in cookie upon signup