Fixed javascript bug in login links