Tried to display better error messages to the users