update the way user login; fix bug when showing active jobs.