implementing authentication mecanism using Js Sessions