Changed the requirements functions to a single method which returns array of messages based on errors.