added jquery to edit links, fixed some login bugs