Added messages servlet and validated parameters for the messages servlet.