Adds the ability to provide custom messages for user invalidity