Added a required check for user and message

Added a required check for user and message and unit tests to support
it.