Fixed a bug related to the logged in checker