Solved some security problems and error messages