Added some Login Logic