Fixed bug with error messages still showing

Error messages would still show even when. Also start of trying to fix
issue #44, figured out what the problem is. Not sure how to fix it