Added error messages to reducer