Fixed error checking is read if user is not logged in