Added a mock login mechanism