Refactored Error messages to constants