Fixed cookie problem. Most definitly final 2.1