Show error and notice messages. Correct some security problems