[#33] Added fixes in check_input, and move error messages to errors file