Added mock login mechanism