move error string to messages.properties