Added debugging output in checklogin