Verification now returns user_id also, added code to keep track of user_id in cookies.